package org.yaac.client.ui;

import java.util.List;
import java.util.Map;

import org.yaac.client.ui.EGQLView.Presenter;

/**
 * @author Max Zhu (thebbsky@gmail.com)
 *
 */
public interface EGQLView extends YaacView<Presenter> {

	
	/**
	 * @author Max Zhu (thebbsky@gmail.com)
	 *
	 */
	public interface Presenter {

		void execute(String command, int batchSize, int maxResult);
	
	}
	
	/**
	 * on result ready
	 * 
	 * @param msg
	 */
	void onMessage(String msg);

	void onSyntaxError(String message);

	void onLogicalError(String errorCode);

	void prepareResultPanels(Map<String, String> responseMap);

	void generateImmediateResultPanel(List<String> immediateStmts);
}
